import {chatList_modifyAction} from "../actions/chatList";
import {GET_ChatList} from "../constans";

const initState: Array<any> = []

const chatListReducer = (preState = initState,action: chatList_modifyAction) => {
    const {type,data} = action
    switch (type){
        case GET_ChatList:
            return data
        default:
            return preState
    }
}

export default chatListReducer